package com.campus_information_portal.entity;


import com.campus_information_portal.util.DateJsonType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.util.Date;

/**
 * @author Y-Rainson
 * @create 2018-03-31 23:06
 **/

public class StuApply {
    private int stuApplyId;
    private int stuInfoId;
    private Integer stuNum;
    private String stuName;
    @JsonSerialize(using = DateJsonType.class)
    private Date applyDate;
    private Integer partyOrganizationNum;
    private Integer applyPartyState;


    public int getStuApplyId() {
        return stuApplyId;
    }

    public void setStuApplyId(int stuApplyId) {
        this.stuApplyId = stuApplyId;
    }


    public int getStuInfoId() {
        return stuInfoId;
    }

    public void setStuInfoId(int stuInfoId) {
        this.stuInfoId = stuInfoId;
    }


    public Integer getStuNum() {
        return stuNum;
    }

    public void setStuNum(Integer stuNum) {
        this.stuNum = stuNum;
    }


    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }


    public Date getApplyDate() {
        return applyDate;
    }

    public void setApplyDate(Date applyDate) {
        this.applyDate = applyDate;
    }


    public Integer getPartyOrganizationNum() {
        return partyOrganizationNum;
    }

    public void setPartyOrganizationNum(Integer partyOrganizationNum) {
        this.partyOrganizationNum = partyOrganizationNum;
    }


    public Integer getApplyPartyState() {
        return applyPartyState;
    }

    public void setApplyPartyState(Integer applyPartyState) {
        this.applyPartyState = applyPartyState;
    }


    @Override
    public String toString() {
        return "StuApply{" +
                "stuApplyId=" + stuApplyId +
                ", stuInfoId=" + stuInfoId +
                ", stuNum=" + stuNum +
                ", stuName='" + stuName + '\'' +
                ", applyDate=" + applyDate +
                ", partyOrganizationNum=" + partyOrganizationNum +
                ", applyPartyState=" + applyPartyState +
                '}';
    }
    public String toString1() {
        return "StuApply{" +
                ", stuNum=" + stuNum +
                ", stuName='" + stuName + '\'' +
                ", applyDate=" + applyDate +
                ", partyOrganizationNum=" + partyOrganizationNum +
                ", applyPartyState=" + applyPartyState +
                '}';
    }
    public StuApply(){}
    public StuApply(Integer stuNum, String stuName, Date applyDate, Integer partyOrganizationNum, Integer applyPartyState) {
        this.stuNum = stuNum;
        this.stuName = stuName;
        this.applyDate = applyDate;
        this.partyOrganizationNum = partyOrganizationNum;
        this.applyPartyState = applyPartyState;
    }

    public StuApply(int stuInfoId,Integer stuNum, String stuName, Date applyDate, Integer partyOrganizationNum, Integer applyPartyState) {
        this.stuInfoId=stuInfoId;
        this.stuNum = stuNum;
        this.stuName = stuName;
        this.applyDate = applyDate;
        this.partyOrganizationNum = partyOrganizationNum;
        this.applyPartyState = applyPartyState;
    }
    public StuApply(Integer stuNum, String stuName, Integer partyOrganizationNum) {
        this.stuNum = stuNum;
        this.stuName = stuName;
        //this.applyDate = applyDate;
        this.partyOrganizationNum = partyOrganizationNum;
    }
}
